package me.sealer.java8.actparamterized.predicate.impl;

import me.sealer.java8.actparamterized.enumeration.Color;
import me.sealer.java8.actparamterized.model.Apple;
import me.sealer.java8.actparamterized.predicate.ApplePredicate;

/**
 * Created by sealer on 09-17-2017.
 */
public class AppleGreenColorPredicate implements ApplePredicate {
    @Override
    public boolean test(Apple apple) {
        return Color.GREEN.equals(apple.getColor());
    }
}
